package com.juhuixing.es.server.listener;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName KafkaListener
 * @Description TODO
 * @Author 刘猛
 * @Date 2019/4/28 15:10
 **/
@Component
public class KafkaListeners {

    @KafkaListener(topics = {"app_kafka_test"})
    public void processMessage(String content) {
        System.out.println(content);
        System.out.println(content);
    }
}
